package com.desksoft.ecommerce.entity.mall.dto;

import java.util.ArrayList;
import java.util.List;

public class MallImagesExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public MallImagesExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("ID is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("ID is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("ID =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("ID <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("ID >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("ID >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("ID <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("ID <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("ID in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("ID not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("ID between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("ID not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andImggroupIsNull() {
            addCriterion("ImgGroup is null");
            return (Criteria) this;
        }

        public Criteria andImggroupIsNotNull() {
            addCriterion("ImgGroup is not null");
            return (Criteria) this;
        }

        public Criteria andImggroupEqualTo(String value) {
            addCriterion("ImgGroup =", value, "imggroup");
            return (Criteria) this;
        }

        public Criteria andImggroupNotEqualTo(String value) {
            addCriterion("ImgGroup <>", value, "imggroup");
            return (Criteria) this;
        }

        public Criteria andImggroupGreaterThan(String value) {
            addCriterion("ImgGroup >", value, "imggroup");
            return (Criteria) this;
        }

        public Criteria andImggroupGreaterThanOrEqualTo(String value) {
            addCriterion("ImgGroup >=", value, "imggroup");
            return (Criteria) this;
        }

        public Criteria andImggroupLessThan(String value) {
            addCriterion("ImgGroup <", value, "imggroup");
            return (Criteria) this;
        }

        public Criteria andImggroupLessThanOrEqualTo(String value) {
            addCriterion("ImgGroup <=", value, "imggroup");
            return (Criteria) this;
        }

        public Criteria andImggroupLike(String value) {
            addCriterion("ImgGroup like", value, "imggroup");
            return (Criteria) this;
        }

        public Criteria andImggroupNotLike(String value) {
            addCriterion("ImgGroup not like", value, "imggroup");
            return (Criteria) this;
        }

        public Criteria andImggroupIn(List<String> values) {
            addCriterion("ImgGroup in", values, "imggroup");
            return (Criteria) this;
        }

        public Criteria andImggroupNotIn(List<String> values) {
            addCriterion("ImgGroup not in", values, "imggroup");
            return (Criteria) this;
        }

        public Criteria andImggroupBetween(String value1, String value2) {
            addCriterion("ImgGroup between", value1, value2, "imggroup");
            return (Criteria) this;
        }

        public Criteria andImggroupNotBetween(String value1, String value2) {
            addCriterion("ImgGroup not between", value1, value2, "imggroup");
            return (Criteria) this;
        }

        public Criteria andImgtypeIsNull() {
            addCriterion("ImgType is null");
            return (Criteria) this;
        }

        public Criteria andImgtypeIsNotNull() {
            addCriterion("ImgType is not null");
            return (Criteria) this;
        }

        public Criteria andImgtypeEqualTo(String value) {
            addCriterion("ImgType =", value, "imgtype");
            return (Criteria) this;
        }

        public Criteria andImgtypeNotEqualTo(String value) {
            addCriterion("ImgType <>", value, "imgtype");
            return (Criteria) this;
        }

        public Criteria andImgtypeGreaterThan(String value) {
            addCriterion("ImgType >", value, "imgtype");
            return (Criteria) this;
        }

        public Criteria andImgtypeGreaterThanOrEqualTo(String value) {
            addCriterion("ImgType >=", value, "imgtype");
            return (Criteria) this;
        }

        public Criteria andImgtypeLessThan(String value) {
            addCriterion("ImgType <", value, "imgtype");
            return (Criteria) this;
        }

        public Criteria andImgtypeLessThanOrEqualTo(String value) {
            addCriterion("ImgType <=", value, "imgtype");
            return (Criteria) this;
        }

        public Criteria andImgtypeLike(String value) {
            addCriterion("ImgType like", value, "imgtype");
            return (Criteria) this;
        }

        public Criteria andImgtypeNotLike(String value) {
            addCriterion("ImgType not like", value, "imgtype");
            return (Criteria) this;
        }

        public Criteria andImgtypeIn(List<String> values) {
            addCriterion("ImgType in", values, "imgtype");
            return (Criteria) this;
        }

        public Criteria andImgtypeNotIn(List<String> values) {
            addCriterion("ImgType not in", values, "imgtype");
            return (Criteria) this;
        }

        public Criteria andImgtypeBetween(String value1, String value2) {
            addCriterion("ImgType between", value1, value2, "imgtype");
            return (Criteria) this;
        }

        public Criteria andImgtypeNotBetween(String value1, String value2) {
            addCriterion("ImgType not between", value1, value2, "imgtype");
            return (Criteria) this;
        }

        public Criteria andImgtypeidIsNull() {
            addCriterion("ImgTypeID is null");
            return (Criteria) this;
        }

        public Criteria andImgtypeidIsNotNull() {
            addCriterion("ImgTypeID is not null");
            return (Criteria) this;
        }

        public Criteria andImgtypeidEqualTo(String value) {
            addCriterion("ImgTypeID =", value, "imgtypeid");
            return (Criteria) this;
        }

        public Criteria andImgtypeidNotEqualTo(String value) {
            addCriterion("ImgTypeID <>", value, "imgtypeid");
            return (Criteria) this;
        }

        public Criteria andImgtypeidGreaterThan(String value) {
            addCriterion("ImgTypeID >", value, "imgtypeid");
            return (Criteria) this;
        }

        public Criteria andImgtypeidGreaterThanOrEqualTo(String value) {
            addCriterion("ImgTypeID >=", value, "imgtypeid");
            return (Criteria) this;
        }

        public Criteria andImgtypeidLessThan(String value) {
            addCriterion("ImgTypeID <", value, "imgtypeid");
            return (Criteria) this;
        }

        public Criteria andImgtypeidLessThanOrEqualTo(String value) {
            addCriterion("ImgTypeID <=", value, "imgtypeid");
            return (Criteria) this;
        }

        public Criteria andImgtypeidLike(String value) {
            addCriterion("ImgTypeID like", value, "imgtypeid");
            return (Criteria) this;
        }

        public Criteria andImgtypeidNotLike(String value) {
            addCriterion("ImgTypeID not like", value, "imgtypeid");
            return (Criteria) this;
        }

        public Criteria andImgtypeidIn(List<String> values) {
            addCriterion("ImgTypeID in", values, "imgtypeid");
            return (Criteria) this;
        }

        public Criteria andImgtypeidNotIn(List<String> values) {
            addCriterion("ImgTypeID not in", values, "imgtypeid");
            return (Criteria) this;
        }

        public Criteria andImgtypeidBetween(String value1, String value2) {
            addCriterion("ImgTypeID between", value1, value2, "imgtypeid");
            return (Criteria) this;
        }

        public Criteria andImgtypeidNotBetween(String value1, String value2) {
            addCriterion("ImgTypeID not between", value1, value2, "imgtypeid");
            return (Criteria) this;
        }

        public Criteria andImgsuitIsNull() {
            addCriterion("ImgSuit is null");
            return (Criteria) this;
        }

        public Criteria andImgsuitIsNotNull() {
            addCriterion("ImgSuit is not null");
            return (Criteria) this;
        }

        public Criteria andImgsuitEqualTo(Integer value) {
            addCriterion("ImgSuit =", value, "imgsuit");
            return (Criteria) this;
        }

        public Criteria andImgsuitNotEqualTo(Integer value) {
            addCriterion("ImgSuit <>", value, "imgsuit");
            return (Criteria) this;
        }

        public Criteria andImgsuitGreaterThan(Integer value) {
            addCriterion("ImgSuit >", value, "imgsuit");
            return (Criteria) this;
        }

        public Criteria andImgsuitGreaterThanOrEqualTo(Integer value) {
            addCriterion("ImgSuit >=", value, "imgsuit");
            return (Criteria) this;
        }

        public Criteria andImgsuitLessThan(Integer value) {
            addCriterion("ImgSuit <", value, "imgsuit");
            return (Criteria) this;
        }

        public Criteria andImgsuitLessThanOrEqualTo(Integer value) {
            addCriterion("ImgSuit <=", value, "imgsuit");
            return (Criteria) this;
        }

        public Criteria andImgsuitIn(List<Integer> values) {
            addCriterion("ImgSuit in", values, "imgsuit");
            return (Criteria) this;
        }

        public Criteria andImgsuitNotIn(List<Integer> values) {
            addCriterion("ImgSuit not in", values, "imgsuit");
            return (Criteria) this;
        }

        public Criteria andImgsuitBetween(Integer value1, Integer value2) {
            addCriterion("ImgSuit between", value1, value2, "imgsuit");
            return (Criteria) this;
        }

        public Criteria andImgsuitNotBetween(Integer value1, Integer value2) {
            addCriterion("ImgSuit not between", value1, value2, "imgsuit");
            return (Criteria) this;
        }

        public Criteria andImgnameIsNull() {
            addCriterion("ImgName is null");
            return (Criteria) this;
        }

        public Criteria andImgnameIsNotNull() {
            addCriterion("ImgName is not null");
            return (Criteria) this;
        }

        public Criteria andImgnameEqualTo(String value) {
            addCriterion("ImgName =", value, "imgname");
            return (Criteria) this;
        }

        public Criteria andImgnameNotEqualTo(String value) {
            addCriterion("ImgName <>", value, "imgname");
            return (Criteria) this;
        }

        public Criteria andImgnameGreaterThan(String value) {
            addCriterion("ImgName >", value, "imgname");
            return (Criteria) this;
        }

        public Criteria andImgnameGreaterThanOrEqualTo(String value) {
            addCriterion("ImgName >=", value, "imgname");
            return (Criteria) this;
        }

        public Criteria andImgnameLessThan(String value) {
            addCriterion("ImgName <", value, "imgname");
            return (Criteria) this;
        }

        public Criteria andImgnameLessThanOrEqualTo(String value) {
            addCriterion("ImgName <=", value, "imgname");
            return (Criteria) this;
        }

        public Criteria andImgnameLike(String value) {
            addCriterion("ImgName like", value, "imgname");
            return (Criteria) this;
        }

        public Criteria andImgnameNotLike(String value) {
            addCriterion("ImgName not like", value, "imgname");
            return (Criteria) this;
        }

        public Criteria andImgnameIn(List<String> values) {
            addCriterion("ImgName in", values, "imgname");
            return (Criteria) this;
        }

        public Criteria andImgnameNotIn(List<String> values) {
            addCriterion("ImgName not in", values, "imgname");
            return (Criteria) this;
        }

        public Criteria andImgnameBetween(String value1, String value2) {
            addCriterion("ImgName between", value1, value2, "imgname");
            return (Criteria) this;
        }

        public Criteria andImgnameNotBetween(String value1, String value2) {
            addCriterion("ImgName not between", value1, value2, "imgname");
            return (Criteria) this;
        }

        public Criteria andImgpathIsNull() {
            addCriterion("ImgPath is null");
            return (Criteria) this;
        }

        public Criteria andImgpathIsNotNull() {
            addCriterion("ImgPath is not null");
            return (Criteria) this;
        }

        public Criteria andImgpathEqualTo(String value) {
            addCriterion("ImgPath =", value, "imgpath");
            return (Criteria) this;
        }

        public Criteria andImgpathNotEqualTo(String value) {
            addCriterion("ImgPath <>", value, "imgpath");
            return (Criteria) this;
        }

        public Criteria andImgpathGreaterThan(String value) {
            addCriterion("ImgPath >", value, "imgpath");
            return (Criteria) this;
        }

        public Criteria andImgpathGreaterThanOrEqualTo(String value) {
            addCriterion("ImgPath >=", value, "imgpath");
            return (Criteria) this;
        }

        public Criteria andImgpathLessThan(String value) {
            addCriterion("ImgPath <", value, "imgpath");
            return (Criteria) this;
        }

        public Criteria andImgpathLessThanOrEqualTo(String value) {
            addCriterion("ImgPath <=", value, "imgpath");
            return (Criteria) this;
        }

        public Criteria andImgpathLike(String value) {
            addCriterion("ImgPath like", value, "imgpath");
            return (Criteria) this;
        }

        public Criteria andImgpathNotLike(String value) {
            addCriterion("ImgPath not like", value, "imgpath");
            return (Criteria) this;
        }

        public Criteria andImgpathIn(List<String> values) {
            addCriterion("ImgPath in", values, "imgpath");
            return (Criteria) this;
        }

        public Criteria andImgpathNotIn(List<String> values) {
            addCriterion("ImgPath not in", values, "imgpath");
            return (Criteria) this;
        }

        public Criteria andImgpathBetween(String value1, String value2) {
            addCriterion("ImgPath between", value1, value2, "imgpath");
            return (Criteria) this;
        }

        public Criteria andImgpathNotBetween(String value1, String value2) {
            addCriterion("ImgPath not between", value1, value2, "imgpath");
            return (Criteria) this;
        }

        public Criteria andWatermarkedIsNull() {
            addCriterion("WaterMarked is null");
            return (Criteria) this;
        }

        public Criteria andWatermarkedIsNotNull() {
            addCriterion("WaterMarked is not null");
            return (Criteria) this;
        }

        public Criteria andWatermarkedEqualTo(String value) {
            addCriterion("WaterMarked =", value, "watermarked");
            return (Criteria) this;
        }

        public Criteria andWatermarkedNotEqualTo(String value) {
            addCriterion("WaterMarked <>", value, "watermarked");
            return (Criteria) this;
        }

        public Criteria andWatermarkedGreaterThan(String value) {
            addCriterion("WaterMarked >", value, "watermarked");
            return (Criteria) this;
        }

        public Criteria andWatermarkedGreaterThanOrEqualTo(String value) {
            addCriterion("WaterMarked >=", value, "watermarked");
            return (Criteria) this;
        }

        public Criteria andWatermarkedLessThan(String value) {
            addCriterion("WaterMarked <", value, "watermarked");
            return (Criteria) this;
        }

        public Criteria andWatermarkedLessThanOrEqualTo(String value) {
            addCriterion("WaterMarked <=", value, "watermarked");
            return (Criteria) this;
        }

        public Criteria andWatermarkedLike(String value) {
            addCriterion("WaterMarked like", value, "watermarked");
            return (Criteria) this;
        }

        public Criteria andWatermarkedNotLike(String value) {
            addCriterion("WaterMarked not like", value, "watermarked");
            return (Criteria) this;
        }

        public Criteria andWatermarkedIn(List<String> values) {
            addCriterion("WaterMarked in", values, "watermarked");
            return (Criteria) this;
        }

        public Criteria andWatermarkedNotIn(List<String> values) {
            addCriterion("WaterMarked not in", values, "watermarked");
            return (Criteria) this;
        }

        public Criteria andWatermarkedBetween(String value1, String value2) {
            addCriterion("WaterMarked between", value1, value2, "watermarked");
            return (Criteria) this;
        }

        public Criteria andWatermarkedNotBetween(String value1, String value2) {
            addCriterion("WaterMarked not between", value1, value2, "watermarked");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}